package com.example.demo.client.evt.cssmqry.role;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Desc
 * @Author zhengmf
 * @Date 2020-01-16 16:22:33
 */
@ApiModel
public class GetPermissionTreeOfRoleEvt implements Serializable {
    private static final long serialVersionUID = 3808408590485214844L;
    @ApiModelProperty("角色ID")
    @NotNull
    private Long id;
    @ApiModelProperty("登录名")
    private String loginName;
    @ApiModelProperty("是否管理员")
    private Boolean admin;

    public Boolean getAdmin() {
        return admin;
    }

    public void setAdmin(Boolean admin) {
        this.admin = admin;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    @Override
    public String toString() {
        return "GetPermissionTreeOfRoleEvt{" +
            "id=" + id +
            ", loginName='" + loginName + '\'' +
            ", admin=" + admin +
            '}';
    }
}
